
TGT_FILE="mk_rpt.sh mk_rpt.pl load_txlog.ctl"
TGT_DIR1=/EAI/eaiDomains/tuxdomain/src/mk_rpt
TGT_DIR2=/EAI/eaiDomains/tuxdomain/app


function getsrc
{

echo -- target : $1
ftp -n <<!
open $1
user $2 $3
pwd
bi
prompt
cd $TGT_DIR1
mput ${TGT_FILE}
cd $TGT_DIR2
mget ${TGT_FILE}
bye

!
}

function dstr
{

echo -- target : $1
ftp -n <<!
open $1
user $2 $3
pwd
bi
prompt
cd $TGT_DIR1
mput ${TGT_FILE}
cd $TGT_DIR2
mput ${TGT_FILE}
bye

!
}

getsrc 10.55.2.130 mhub01 fckcs24

#dstr 10.55.2.131 mhub01 fckcs24
dstr 10.55.2.140 mhub01 team01
dstr 10.55.2.141 mhub01 team01
dstr 10.55.2.160 mhub01 fckcs24
dstr 10.55.2.161 mhub01 fckcs24
